package com.le.bean;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 性别枚举
 */
public enum GenderType {
    MALE(1, "男"),
    FEMALE(0, "女");

    @EnumValue
    private int value;
    private String key;


    GenderType(int value, String key) {
        this.key = key;
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
